export { };
class Person {
  name: string;
  next: Person;

  constructor(name: string) {
    this.name = name;
  };
}

let p = new Person("宋江");
p.next = new Person("卢俊义");
p.next.next = new Person("秦明");

while (p) {
  console.log(p.name);
  p = p.next;
};

